<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户列表</title>
  <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
</head>

<body>
  <div class="layui-card">
    <div class="layui-card-header">用户列表</div>
    <div class="layui-card-body">
      <form class="layui-form" action="">
        <!-- 用户列表  first-->
        <table class="layui-table">
          <colgroup>
            <col width="10%">
            <col width="30%">
            <col width="15%">
            <col width="15%">
            <col width="30%">
            <col>
          </colgroup>
          <thead>
            <tr>
              <th>ID</th>
              <th>账号名称</th>
              <th>昵称</th>
              <th>邮箱</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <!-- <tr>
              <td>2</td>
              <td>账号名称aa</td>
              <td>昵称aa</td>
              <td>dssz@qq.com</td>
              <td>
                <button class="layui-btn layui-btn-xs" lay-submit lay-filter="formDemo">编辑</button>
                <button class="layui-btn layui-bg-red layui-btn-xs" lay-submit lay-filter="formDemo">删除</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-bg-blue layui-btn-xs">重置密码</button>
              </td>
            </tr> -->
          </tbody>
        </table>
        <!-- 用户列表  end  -->
      </form>
      <div id="split"></div>
    </div>
  </div>


<!-- tpl 展示模板**********start-->
  <script id="tpl-line" type="text/html">
    {{each data item}}
    <tr>
              <td>{{item.id}}</td>
              <td>{{item.username}}</td>
              <td>{{item.nickname}}</td>
              <td>{{item.email}}</td>
              <td>
                <a target="fm" href="./edit.html?id={{item.id}}" class="layui-btn layui-btn-xs" lay-submit lay-filter="formDemo">编辑</a>
                <button type="button" class="layui-btn layui-bg-red layui-btn-xs aa" lay-filter="formDemo" data-id="{{item.id}}" >删除</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-bg-blue layui-btn-xs bounce" data-id="{{item.id}}">重置密码</button>
              </td>
            </tr>
  {{/each}}
  </script>
  <!-- tpl 展示模板*********end -->

<!-- 弹出层模板*********** first -->
<script id="tpl-bounce" type="text/html">
  <form class="layui-form" action="" style="margin:15px 30px 0 0 ">
    <div class="layui-form-item">
      <label class="layui-form-label">密码</label>
      <div class="layui-input-block">
        <input type="password" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input ff">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label" >确认密码</label>
      <div class="layui-input-block">
        <input type="password"  required  lay-verify="required|differ" placeholder="请输入确认密码" autocomplete="off" class="layui-input " >
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit lay-filter="formDemo" >提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
</script>
<!-- 弹出层模板*********** end-->


  <script src="../assets/lib/jquery.js"></script>
  <script src="../assets/lib/layui/layui.all.js"></script>
  <script src="../assets/lib/template-web.js"></script>
  <script src="../assets/js/common.js"></script>
  <script src="../assets/js/user/user.js"></script>
</body>

</html>